import axios from "axios";
export default function (callback,relGroup) {
	let url =  window.api.config_host+'/resourceDate/resource/new_qc';
    let params = {storeCode: localStorage.getItem("storeCode"),relGroup:relGroup}
    let options = {
        method: "get",
        url,
        params,
        headers: {sessionId: getCookie("sessionId")}
    }
    axios(options).then(data => {
        if (data.status === 200 && data.data.returnCode === 1 && data.data.data) {
            callback && callback(data.data.data);
        } else {
            console.log("请求接口失败");
        }
    }).catch(err => {
        console.log(err);
    });
}